import { cloneDeep } from 'lodash';
import textInputCompImg from '@/visual/assets/img/dashboard/text-input-comp.png';
import { visualComponentConfig, visualComponentGroup } from './base-config';
import CommonUtil from '@/visual/commons/utils/common-util';



/**
 * 文本
 */
const textInputCompConfig = {
    key: 'dag0d1e946d7',
    compId:'hvTextInput'+CommonUtil.shortUUID(),
    name: 'hvTextInput',
    group: visualComponentGroup.base.value,
    label: '文本',
    img: textInputCompImg,
    propertyComponent: 'hvTextInputProperty',
    componentStyleGeneratorName: 'hvCommonStyleGenerator',
    ...cloneDeep(visualComponentConfig.options),
    componentDimensions: {
        width: 300,
        height: 50,
    },
    componentProps: {
        text: '请修改文本',
    },
};


/**
 * 配置 
 */
export {
    textInputCompConfig
}